﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Square:Shape
    {
        public int sideLen { get; set; }

        public Square()
        { }
        public Square(int sideLen)
        {
            this.sideLen = sideLen;
        }
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("正方形的面积为："+sideLen* sideLen);
        }
    }
    }
